package com.woniu.car.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class AddSpecValueParam {
    /**
     * 规格组id
     */
    @ApiModelProperty(value = "规格值id",example = "1")
    @NotNull(message = "规格值id不能为空")
    @Min(value = 0, message = "输入id 有误")
    private Integer specId;
    /**
     * 参数字段值
     */
    @ApiModelProperty(value = "规格值字段名",required = true)
    @NotNull(message = "规格值字段名空")
    @Size(min = 0, message = "命名有误")
    private String specValue;
}
